<!--
 * @Author: Dorange.Wang
 * @Date: 2021-07-07 15:37:01
 * @LastEditors: your name
 * @LastEditTime: 2021-07-20 13:57:49
 * @Description: file content
-->
<template>
  <div style="word-break: break-all;">
    <van-button type="primary" block round @click="handleLogout"
      >退出登录</van-button
    >
    {{ userInfo }}
  </div>
</template>

<script>
import { mapGetters, mapActions } from "vuex";
export default {
  computed: {
    ...mapGetters(["userInfo"]),
  },

  methods: {
    ...mapActions(["userLogout"]),
    handleLogout() {
      this.userLogout();
    },
  },
};
</script>

<style></style>
